<template>
    <div>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        测试
        <hr />
        <form action="">
            <label for="">phone:</label> <input type="text" placeholder="phone" v-hvali="{key:'phone',rule:'phone'}"> <br>
            <hr />
            <label for="">email:</label> <input type="text" placeholder="email" v-hvali="{key:'email',rule:'required|email'}"> <br>
            <hr />
            <button type="button" @click="submit">提交</button>
        </form>
    </div>
</template>

<script>
export default {
    methods: {
        submit() {
            beforeSubmitValidate(() => {
                console.log("提交");
            });
        }
    }
};
</script>

<style>
</style>
